import java.util.Scanner;

public class Main1220 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);

        int n= sc.nextInt();
        int x= sc.nextInt();
        int y=sc.nextInt();
        for (int i=(n-y)/x;i>=1;i--){
            for (int j=1;j<=(n-x)/y;j++){
                if (x*i+y*j==n&&i>j){
                    System.out.println(i+" "+j);

                }
            }break;
        }
    }
}
